﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : MultiServerEngine | ServerFramework | IServerPeer.cs
// //  Created : 2016 - 02 - 16 20:53
// //  Modified: 2016 - 02 - 20 12:33
// //  ********************************************************************************

using System;
using System.Collections.Generic;
using ExitGames.Logging;
using ServerFramework.Interfaces.Application;
using TypeDefs;

namespace ServerFramework.Interfaces.Server
{
    /// <summary>
    ///     Interface for a server peer
    /// </summary>
    public interface IServerPeer
    {
        ILogger Logger { get; }
        Guid PeerId { get; }
        ServerTypes ServerType { get; }
        IServerApplication Server { get; }

        void Connect();

        void Disconnect();

        Dictionary<HandlerTypes, List<OperationCodes>> GetHandledOperations();
    }
}
